<template>
  <div class="prov-detail">
    <div class="slider">
      <img :src="`${staticPath}/img_hulidaojia@2x.png`" alt="" />
    </div>
    <div class="desc">
      <div class="title">
        {{provBirth.title}}
      </div>
      <p class="description">
        {{provBirth.desc}}
      </p>
      <div class="price-table">
        <div class="left">
          <i class="num">{{provBirth.price}}</i>
        </div>
      </div>
    </div>

    <div class="common-panel">
      <div class="huli-common-title">
        <h3><em></em>办理条件：</h3>
        <div class="step-wrapper" v-html="provBirth.content">
          
        </div>
      </div>
    </div>
    <!-- <div class="common-panel">
      <div class="huli-common-title">
        <h3><em></em>办理材料：</h3>
        <div class="common-desc">
          <p>出生医学记录单：在入院时带好准生证以及夫妻双方身份证在医院办理即可</p>
        </div>
      </div>
    </div> -->

  
  </div>
</template>

<script>
import { birthProveServer } from '@/service/server';
export default {
  data() {
    return {
      staticPath: process.env.VUE_APP_STATIC_PATH,
      value: 3,
      provBirth: {}
    };
  },

  components: {},

  computed: {},
  created(){
    this.queryBirthProv()
  },

  methods: {
    async queryBirthProv(){
      let result = await birthProveServer();
      if(result.status == 200){
        this.provBirth = result.data
      }else{
        this.$toast(result.message)
      }
    }
  },
};
</script>
<style lang='less'>
.prov-detail {
  background: #f5f5f5f5;

  .btn-center{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    .van-button{
      padding-left: 20px;

      padding-right: 20px;
    }
  }
  .custom-cell {
    padding-left: 0;
    padding-right: 0;
    background: #fff;

    .custom-title {
      font-size: 16px;
    }
    .van-cell__title {
      padding-left: 10px;
    }
  }
  .create-time {
    padding: 8px 0;
    color: #999;
    font-size: 13px;
  }
  .comment-grid {
    .van-grid-item__content {
      padding: 0;
    }
  }
  .common-panel {
    margin-top: 10px;
    background: #fff;
    padding: 15px;
  }
  .slider {
    width: 100%;
    height: 220px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .desc {
    padding: 0 15px;
    background: #fff;
    .title {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      font-size: 18px;
      font-weight: bold;
      color: #000;
      padding: 10px 0;
    }
    .description {
      line-height: 1.5;
      color: #999;
    }
  }
  .price-table {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0 20px 0;
    .right {
      color: #999;
      font-size: 14px;
    }
    .left {
      flex: 1;
      font-size: 18px;
      color: #E02E2E;
      .line-price {
        color: #999;
        font-size: 12px;
        margin-left: 10px;
      }
    }
  }
  .common-desc {
    p {
      color: #999;
      line-height: 1.5;
    }
  }
  .comment-pre {
    color: #999;
    line-height: 1.5;
    font-size: 13px;
  }
  .huli-common-title {
    margin-bottom: 15px;
    .right-arrow {
      display: flex;
      justify-content: flex-end;
      color: #999;
      font-size: 13px;
      flex: 1;
    }
    h3 {
      font-size: 16px;
      margin-bottom: 15px;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      em {
        display: inline-block;
        width: 5px;
        height: 17px;
        background: linear-gradient(0deg, #fcc9cb, #f7757b);
        border-radius: 5px;
        margin-right: 6px;
      }
    }
  }
}
</style>